'use strict';

module.exports = app => {
  const { router, controller, io } = app;
  //跳转 登录页面
  router.get('/login', controller.user.login)
  router.post('/dologin', controller.user.dologin)
  // socket.io
  io.of('/').route('index', io.controller.chatroom.index);
};